package com.island.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.island.dao.ActionDao;
import com.island.model.Action;
import com.island.service.IActionService;
import com.pollexsoft.base.dao.EntityDao;
import com.pollexsoft.base.service.BaseService;

@Service
public class ActionServiceImpl extends BaseService<Action, java.lang.String> implements IActionService {

	@Autowired
	private ActionDao actionDao;
	
	@SuppressWarnings("unchecked")
	@Override
	protected EntityDao getEntityDao() {
		return this.actionDao;
	}
	
	public void delAction(int id) {

		actionDao.delAction(id);
	}

	public List<Action> findAll() {

		return actionDao.findAll();
	}

	public void insertAction(Action action) {

		actionDao.insertAction(action);
	}

	public void updateAction(Action action) {

		actionDao.updateAction(action);
	}
}
